call config.bat

set PATH_APP_UNSIGN=%PATH_PROJECT%\build\outputs\hap\debug\phone\entry-debug-rich-unsigned.hap
set PATH_APP_SIGNED=%PATH_PROJECT%\entry-debug-rich-signed.hap

set PATH_P12=%PATH_SIG_CENTER%\key\OpenHarmony.p12
set PATH_p7b=%OUT_DIR%\openharmony_sx.p7b
set PATH_PEM=%PATH_SIG_CENTER%\certificates\OpenHarmonyApplication.pem
set PATH_SIGN_TOOL=%PATH_SIG_CENTER%\hapsigntool\hapsigntoolv2.jar

java -jar %PATH_SIGN_TOOL% sign -mode localjks -privatekey "OpenHarmony Application Release" -inputFile %PATH_APP_UNSIGN% -outputFile %PATH_APP_SIGNED% -keystore %PATH_P12% -keystorepasswd 123456 -keyaliaspasswd 123456 -signAlg SHA256withECDSA -profile "%PATH_p7b%" -certpath "%PATH_PEM%"

hdc app install  -r %PATH_APP_SIGNED%

REM hdc shell aa start -d 12345 -a %NAME_ABILITY% -b %NAME_BUNDLE%
REM pause